package cn.wolfcode.luowowo.comment.service;

import cn.wolfcode.luowowo.comment.domain.TravelComment;
import cn.wolfcode.luowowo.comment.query.TravelCommentQuery;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * 游记评论接口
 */
public interface ITravelCommentService {
    TravelComment save(TravelComment travelComment);

    Page query(TravelCommentQuery qo);

    Long getCount(Long travelId);

    /**
     * 根据游记id,查询游记的评论内容
     * @return
     */
    List<TravelComment> list(Long tid);
}
